From 59b9df263cdf8b287f1a5d0f1dfd77069195a213 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Wed, 12 Sep 2007 09:58:16 +0100 Subject: [PATCH] [XEN] Fix assert in typed p2m code as spotted by GCC-4's enthusiastic warnings. Signed-off-by: Christoph Egger --- xen/include/asm-x86/p2m.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-x86/p2m.h b/xen/include/asm-x86/p2m.h index 0febce28f4..ff00bbd4fa 100644 --- a/xen/include/asm-x86/p2m.h +++ b/xen/include/asm-x86/p2m.h @@ -119,7 +119,7 @@ static inline mfn_t gfn_to_mfn_current(unsigned long gfn, p2m_type_t *t) if ( ret == 0 ) { p2mt = p2m_flags_to_type(l1e_get_flags(l1e)); - ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(*t)); + ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(p2mt)); if ( p2m_is_valid(p2mt) ) mfn = _mfn(l1e_get_pfn(l1e)); else -- 2.30.2